/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.jome.ctrlview.bidim;

/**
 *
 * @author Mr.Sam
 */
import java.io.Serializable;
import fr.ove.openmath.jome.ctrlview.bidim.*;
import fr.ove.openmath.jome.model.FormulaTreeStructure;
import fr.ove.utils.Factory;

/**
* This class instanciates the right layout manager according to the display which
* calls the method.
* This is an abstract class. It must be inherited to be specialized.
*
* @author © 1999 DIRAT Laurent
* @version 2.0  01/07/1999
*/

public class BidimLayoutAllocator extends LayoutAllocator {
    /**
    * Instanciates the right layout manager whose name is specified.
    * @param layoutName the (class) name of the layout manager.<BR>
    * The name is fully qualified, i.e. packageName.className
    */
    public DisplayLayout allocateLayout(String layoutName) {
        return (DisplayLayout) Factory.getClassInstance(layoutName);
    }
}
